#include "widget.h"
#include "ui_widget.h"

#include<QIcon>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //设置图标
    //栈上创建
//    QIcon  icon("C:/Users/zyy/Desktop/a.jpg");//绝对路劲
    QIcon  icon(":/a.jpg");
    this->setWindowIcon(icon);

}

Widget::~Widget()
{
    delete ui;
}

